package ygw.study.designPatterns.strategy;

/**
 * <p>
 * 设计模式-策略模式
 * </p>
 * <p>
 * Copyright:2021.All rights reserved.
 * </p>
 * <p>
 * Company:Zsoft
 * </p>
 * <p>
 * CreateDate:2021-05-18 10:50
 * </p>
 *
 * @author YuGongWen
 * @history Mender:YuGongWen；Date:2021-05-18 10:50；
 */
public class ContextStrategy {

    private StrategyI strategy;

    public ContextStrategy(StrategyI strategy) {
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2){
        return strategy.doOperation(num1, num2);
    }
    
    
}